import JsonData from "../../Json.js";
let { third } = JsonData.gallery;
Component({
    properties: {
      currentIndex: {
        type: String,
        value: "",
        observer: function (options) {
          let current = options.split(","), windowWidth = current[1] / 2;

          if(current[0] == 3){
            this.app = getApp(); 
            this.app.sliderightshow(this, "slide_right0", windowWidth, 1, 2000, 1000); 
            this.app.sliderightshow(this, "slide_right1", -windowWidth, 1, 2000, 1000);
            this.app.show(this, "show0", 1, 5000, 4000);
            this.app.slideupshow(this, "slide_up0", 200, 1, 2000, 1000);
            this.app.slideupshow(this, "slide_up1", 20, 1, 5000, 3000);
          }
        }
      }
    },
    data: {
      third: third
    },
    methods: {}
});